Only build the relevant loaders which require extra libraries if we
authorMichael Zucchi <mzucchi@denr.sa.gov.au>
Mon, 26 Jul 1999 06:39:39 +0000 (06:39 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Mon, 26 Jul 1999 06:39:39 +0000 (06:39 +0000)
1999-07-26  Michael Zucchi  <mzucchi@denr.sa.gov.au>

        * src/Makefile.am (*_LIB): Only build the relevant loaders which
        require extra libraries if we actually have those libraries.

gdk-pixbuf/ChangeLog
gdk-pixbuf/Makefile.am

index 6093b15f458d77bde09b298d0048d864a9901010..8bc05a80858b145e37c2b5e0c26d9db0c49907f3 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-26  Michael Zucchi  <mzucchi@denr.sa.gov.au>
+
+       * src/Makefile.am (*_LIB): Only build the relevant loaders which
+       require extra libraries if we actually have those libraries.
+
 1999-07-23  Richard Hestilow  <hestgray@ionet.net>
        
        * src/gdk-pixbuf.h: Include glib.h as it uses g* datatypes
index fddf0bd26a967264e5e7c713c073ab1f7d160d32..b79eb088e7f4b510c5c3b2ffb752c1ecb921374c 100644 (file)
@@ -4,12 +4,30 @@ lib_LTLIBRARIES =             \
 
 libexecdir = $(libdir)/gdk-pixbuf/loaders
 
+if HAVE_PNG
+PNG_LIB =      libpixbuf-png.la
+endif
+
+if HAVE_JPEG
+JPEG_LIB =     libpixbuf-jpeg.la
+endif
+
+if HAVE_GIF
+GIF_LIB =      libpixbuf-gif.la
+endif
+
+if HAVE_TIFF
+TIFF_LIB =     libpixbuf-tiff.la
+endif
+
+XPM_LIB =      libpixbuf-xpm.la
+
 libexec_LTLIBRARIES =          \
-       libpixbuf-png.la        \
-       libpixbuf-jpeg.la       \
-       libpixbuf-gif.la        \
-       libpixbuf-xpm.la        \
-       libpixbuf-tiff.la
+       $(PNG_LIB)      \
+       $(JPEG_LIB)     \
+       $(GIF_LIB)      \
+       $(XPM_LIB)      \
+       $(TIFF_LIB)
 
 noinst_PROGRAMS = testpixbuf
 DEPS = libgdk_pixbuf.la